<?php namespace admin\Model;
use Hdphp\Model\Model;
class Login extends Model{
	protected $table='admin';
	public function IP(){
		$adminIP=\request::IP();
		$this->where(array('adminaccount'=>$_SESSION['info']['adminaccount']))->save(array('loginip'=>$adminIP));
		$time=date('Y-m-d h:i:s',time());
		$this->where(array('adminaccount'=>$_SESSION['info']['adminaccount']))->save(array('logintime'=>$time));
	}
	
}

 ?>